﻿namespace SmartCity.Shared
{
    /// <summary>
    /// 结果输出类
    /// </summary>
    public class ResultResponse<TEntity>: ActionResponse<ResultResponse<TEntity>>
    {
        /// <summary>数据</summary>
        public TEntity Data { get; set; }

        /// <summary>
        /// 成功
        /// </summary>
        /// <param name="data"></param>
        public static ResultResponse<TEntity> Successful(TEntity data)
        {
            var result = Successful();
            result.Data = data;
            return result;
        }
    }
}